call \tab\setenv.bat

cd ..\jground-base
call mvn clean 
call mvn install 
call mvn clean 

cd ..\jground-rx
call mvn clean 
call mvn install 
call mvn clean 

cd ..\jground-rx-zk
call mvn clean 
call mvn install 
call mvn clean 

cd ..\jground-rx-zk-ext
call mvn clean 
call mvn install 
call mvn clean 

cd ..\rx-apps-crm



set _AID=zds-crm
set _TAG=1.0

set LOCAL_FILE=%CD_ROOT%a_proj\ws\maven_local\repository\org\jground\rx\%_AID%\%_TAG%\%_AID%-%_TAG%.war

call mvn -Dversion=%_TAG% -DartifactId=%_AID% clean
call mvn -Dversion=%_TAG% -DartifactId=%_AID% install
call mvn -Dversion=%_TAG% -DartifactId=%_AID% clean
set _AID=ooit-crm
call mvn -Dversion=%_TAG% -DartifactId=%_AID% install
call mvn -Dversion=%_TAG% -DartifactId=%_AID% clean

call ant -buildfile %CD_ROOT%a_proj/build.xml -Dbackup_dir=%CD_ROOT%java/apache-tomcat-5.5.17/webapps  -Dlocal_file=%LOCAL_FILE% copyfile

pause